package io.gitee.zicai.nacos.provider.controller

import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

/**
 * ProviderController
 *
 * @author zicai
 * @since 2019-01-17
 */
@RestController
@RequestMapping("/t")
open class ProviderController {

    @GetMapping("/hello/{name}")
    open fun hello(@PathVariable("name") name: String) = "hello $name"
}